<template>
  <div class="container">
     <el-descriptions
        title="系统信息"
        :column="3"
        :size="large"
        border
    >
        <template #extra>
            <el-button type="primary">修改信息</el-button>
        </template>
        <el-descriptions-item>
            <template #label>
                <div class="cell-item">
                <el-icon :style="iconStyle">
                    <user />
                </el-icon>
                {{sysTable.admin}}
                </div>
            </template>
            {{sysData.admin}}
        </el-descriptions-item>
        <el-descriptions-item>
            <template #label>
                <div class="cell-item">
                <el-icon :style="iconStyle">
                    <user />
                </el-icon>
                {{sysTable.createdTime}}
                </div>
            </template>
            {{sysData.createdTime}}
        </el-descriptions-item>
        <el-descriptions-item>
            <template #label>
                <div class="cell-item">
                <el-icon :style="iconStyle">
                    <user />
                </el-icon>
                {{sysTable.company}}
                </div>
            </template>
            {{sysData.company}}
        </el-descriptions-item>
        <el-descriptions-item>
            <template #label>
                <div class="cell-item">
                <el-icon :style="iconStyle">
                    <user />
                </el-icon>
                {{sysTable.classNumber}}
                </div>
            </template>
            {{sysData.classNumber}}
        </el-descriptions-item>
        <el-descriptions-item>
            <template #label>
                <div class="cell-item">
                <el-icon :style="iconStyle">
                    <user />
                </el-icon>
                {{sysTable.teacherNumber}}
                </div>
            </template>
            {{sysData.teacherNumber}}
        </el-descriptions-item>
        <el-descriptions-item>
            <template #label>
                <div class="cell-item">
                <el-icon :style="iconStyle">
                    <user />
                </el-icon>
                {{sysTable.stuNumber}}
                </div>
            </template>
            {{sysData.stuNumber}}
        </el-descriptions-item>
    </el-descriptions>
  </div>
</template>

<script>

import { reactive,toRefs} from 'vue'

export default {
    setup() {
        const dataMap = reactive({
            sysTable:{
                admin: "管理员",
                createdTime: "创建时间",
                company: "公司",
                classNumber: "班级数",
                teacherNumber: "教师数量",
                stuNumber: "学生数",

            },
            sysData: {
                admin: "大黄",
                createdTime: "2022-07-12",
                company: "大黄有限公司",
                classNumber: "15",
                teacherNumber: "30",
                stuNumber: "100",                
            }
        })
        return {
            ...toRefs(dataMap)
        }
    }
}
</script>


<style scoped>

.container {
  height: 100%;
  width: 100%;
  display: flex;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
}
</style>